package com.ekeyman.securecreditlib.dao;

import java.util.List;

import com.ekeyman.securecredit.dto.CreditCardGrid;
import com.ekeyman.securecreditlib.domain.CreditCard;
import com.ekeymanlib.dto.SearchFilter;

public interface CreditCardDao {
	public void saveCreditCard(CreditCard creditCard);
	public CreditCard findCreditCard(String fourDigits, String nameOnCard);
	public void deleteCreditCard(long id);
	public List<CreditCard> listCreditCards(List<SearchFilter> searchFilters, 
			String sortIndex, String sortOrder, int firstResult, int maxResults);
	public long getCreditCardCount(List<SearchFilter> searchFilters);
	public CreditCard findCreditCard(long id);
	public void updateCreditCard(CreditCardGrid creditCardGrid);
}
